<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    

    <script>
        // console.log(location.href);
        console.log("host:"+location.host);
        console.log("hostname:"+location.hostname);
        console.log("protocol:"+location.protocol);
        console.log("port:"+location.port);
        console.log("origin:"+location.origin);
        console.log("search:"+location.search);
        console.log("hash："+location.hash)
        
        setTimeout(function(){
            //location.href= "http://www.sina.com.cn";

            console.log(window.navigator)
        }, 2000);

    </script>

</body>
</html>